package com.tpc.dao.core;

/**
 * @version 0.0.1
 * @author frederic.fortin
 * @modified 2010-09-01
 */
import com.google.gwt.user.client.rpc.IsSerializable;
import java.util.Date;

public class Address implements IsSerializable {

    private int id;
    private String description;
    private String street;
    private String suite;
    private int defaut;
    private int zipcodeId;
    private String zipcode;
    private String zipcodeDash;
    private int cityId;
    private String cityName;
    private int districtId;
    private String districtName;
    private int stateId;
    private String stateName;
    private String stateCode;
    private int countryId;
    private String countryName;
    private String countryCode;
    private String[] keyType;
    private Organisation organisation;
    private User user;
    private int life;
    private Date created_date;
    private Date modified_date;
    private int created_by;
    private int modified_by;

    public Address() {

    }

    public Address(int idp,String descriptionp,String streetp,String suitep,int defautp,int zipcodeidp,String zipcodep,int cityidp,String citynamep,int stateidp,String statenamep,String statecodep,int countryidp,String countrynamep,String countrycodep,int  lifep,Date createddatep,Date modifieddatep,int createdbyp,int modifiedbyp) {
        setId(idp);
        setDescription(descriptionp);
        setStreet(streetp);
        setSuite(suitep);
        setDefaut(defautp);
        setZipcodeId(zipcodeidp);
        setZipcode(zipcodep);
        setCityId(cityidp);
        setCityName(citynamep);
        setStateId(stateidp);
        setStateName(statenamep);
        setStateCode(statecodep);
        setCountryId(countryidp);
        setCountryName(countrynamep);
        setCountryCode(countrycodep);
        setLife(lifep);
        setCreatedDate(createddatep);
        setModifiedDate(modifieddatep);
        setCreatedBy(createdbyp);
        setModifiedBy(modifiedbyp);
    }

    public String getDescription() {
        return description;
    }
    public void setDescription(String param) {
        description = param;
    }

    public String getStreet() {
        return street;
    }
    public void setStreet(String param) {
        street = param;
    }

    public void setUser() {
        user = new User();
    }
    public User getUser() {
        return user;
    }

    public void setOrganisation() {
        organisation = new Organisation();
    }
    public Organisation getOrganisation() {
        return organisation;
    }

    public String getSuite() {
        if (suite == null) {
            suite = "";
        }
        return suite;
    }
    public void setSuite(String param) {
        suite = param;
    }

    public int getDefaut() {
        return defaut;
    }
    public void setDefaut(int param) {
        defaut = param;
    }

    public int getZipcodeId() {
        return zipcodeId;
    }
    public void setZipcodeId(int param) {
        zipcodeId = param;
    }

    public String getZipcode() {
        return zipcode;
    }
    public void setZipcode(String param) {
        zipcode = param;
    }

    public String getZipcodeDash() {
        return zipcodeDash;
    }
    public void setZipcodeDash(String param) {
        zipcodeDash = param;
    }

    public int getCityId() {
        return cityId;
    }
    public void setCityId(int param) {
        cityId = param;
    }

    public String getCityName() {
        return cityName;
    }
    public void setCityName(String param) {
        cityName = param;
    }

    public int getDistrictId() {
        return districtId;
    }
    public void setDistrictId(int param) {
        districtId = param;
    }

    public String getDistrictName() {
        return districtName;
    }
    public void setDistrictName(String param) {
        districtName = param;
    }

    public int getStateId() {
        return stateId;
    }
    public void setStateId(int param) {
        stateId = param;
    }

    public String getStateName() {
        return stateName;
    }
    public void setStateName(String param) {
        stateName = param;
    }

    public String getStateCode() {
        return stateCode;
    }
    public void setStateCode(String param) {
        stateCode = param;
    }

    public int getCountryId() {
        return countryId;
    }
    public void setCountryId(int param) {
        countryId = param;
    }

    public String getCountryName() {
        return countryName;
    }
    public void setCountryName(String param) {
        countryName = param;
    }

    public String getCountryCode() {
        return countryCode;
    }
    public void setCountryCode(String param) {
        countryCode = param;
    }

    public String[] getKeyType() {
        return keyType;
    }
    public void setKeyType(String[] param) {
        keyType = param;
    }

    /** ALL TPC_OBJECT HAVE THOSE METHODS / FIELDS **/
    public int getId() {
        return id;
    }
    public void setId(int param) {
        id = param;
    }

    public int getLife() {
        return life;
    }
    public void setLife(int param) {
        life = param;
    }

    public Date getCreatedDate() {
        return created_date;
    }
    public void setCreatedDate(Date param) {
        created_date = param;
    }

    public int getCreatedBy() {
        return created_by;
    }
    public void setCreatedBy(int param) {
        created_by = param;
    }

    public Date getModifiedDate() {
        return modified_date;
    }
    public void setModifiedDate(Date param) {
        modified_date = param;
    }

    public int getModifiedBy() {
        return modified_by;
    }
    public void setModifiedBy(int param) {
        modified_by = param;
    }

}
